VxRadioBox


Create a RadioBox widget allowing titles and labels

Syntax

VxRadioBox object_name [options] VtRadioBoxArgs

Description

Creates a VtRadioBox, allowing -title and -label. Returns the widget name.

Options

object_name
The widget hierarchy of the RadioBox.

-title titlestring
Creates a Form around the RadioBox widget and attaches a Label above it. The Label is attached to the top side of the Form. The RadioBox widget is attached to the left, right and bottom sides of the Form and also to the bottom side of the Label.

-label labelstring
Creates a Form around the RadioBox widget and attaches a Label to the left side of it. The Label is attached to the top and bottom of the Form. The RadioBox widget is attached to the right, top and bottom sides of the Form.

VtRadioBoxArgs
Any argument(s) legal for VtRadioBox.

Example

The following code produces a RadioBox with a title and three ToggleButtons.

set app [VtOpen "radioboxdemo"]

set form [VtFormDialog $app.form -title "VxRadioBox Demo" ]

set radiobox [VxRadioBox $form.radiobox \
	-title "Choose your favorite fruit" \
	-borderWidth 2 \
	-leftSide FORM \
	-rightSide FORM]

set apple [VtToggleButton $radiobox.apple -label "Apple" ]
set orange [VtToggleButton $radiobox.orange -label "Orange" ]
set kumquat [VtToggleButton $radiobox.kumquat -label "Kumquat" ]

VtShow $form
VtMainLoop

This code produces the following:

Notes

To retrieve the widget name of the Label or Form that is created using this command use VxGetVar. For example:

VxGetVar $widgetName "form"
or
VxGetVar $widgetName "label"